<?php
 
header("Content-type: text/json; charset=utf-8");
header("Access-Control-Allow-Origin: *");
// http://tool.zhuogg.com/api.php?query=%E7%A6%8F%E5%B7%9E&region=131
$host ='http://api.map.baidu.com/place/v2/suggestion';
if(isset($_GET['host'])){
   $host =$_GET['host'];
   unset($_GET['host']);
}
$_GET['output']='json';
$_GET['ak']='0A287eeb73dd88d587d312f47a817d9f';
// echo $host.'?'.http_build_query($_GET);
 echo file_get_contents($host.'?'.http_build_query($_GET));


//echo file_get_contents('http://jsfiddle.net/zhuoyr/aabnk5k7/');